﻿/// <reference path="jquery-1.4.4-vsdoc.js" />

function init() {
    loadGridOne();
}


function loadAsyncHtml(urlAction, dest) {
    $.ajax({
        type: "GET",
        dataType: "html",
        url: urlAction,
        success: function (data) {
            $(dest).hide().fadeOut().html('').html(data).fadeIn();
        }
    });
}



function loadGridOne() {
    $('#btn').click(function () {
        var url = '/Home/GridOne';
        loadAsyncHtml(url, '#grid');
    });
}

function loadGridOneWithParams(page) {

    var url = '/Home/GridOne?page=' + page;
    loadAsyncHtml(url, '#grid');
}